package com.zhj.edu.iotserver.config;

import com.zhj.edu.service.anno.EnableJwtTokenService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootConfiguration
@EnableJwtTokenService
@EnableTransactionManagement
@EnableScheduling   //使能定时任务
@ComponentScan(basePackages = {"com.zhj.edu"})
@MapperScan(basePackages = {"com.zhj.edu.iotserver.mapper"})
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)
public class AppConfig {
}
